import axios from '@/libs/request'
// 商品单位列表
export const goodsUnitServiceList = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/goodsUnitService/findList',
    data: data,
    type: 'post'
  })
}
// 商品单位-添加
export const goodsUnitServiceInsert = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/goodsUnitService/insert',
    data: data,
    type: 'post'
  })
}
// 商品单位-保存
export const goodsUnitServiceUpdate = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/goodsUnitService/update',
    data: data,
    type: 'post'
  })
}
// 商品单位-删除
export const goodsUnitServiceDelete = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/goodsUnitService/delete',
    data: data,
    type: 'post'
  })
}
// 商品分类列表
export const CategoryFindList = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/goodsCategoryService/findList',
    data: data,
    type: 'get'
  })
}
// 新增分类
export const CategoryInsert = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/goodsCategoryService/insert',
    data: data,
    type: 'post'
  })
}
// 修改分类
export const CategoryUpdate = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/goodsCategoryService/update',
    data: data,
    type: 'post'
  })
}
// 删除分类
export const CategoryDelete = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/goodsCategoryService/delete',
    data: data,
    type: 'post'
  })
}
// 商品规格组列表
export const propertyNameServiceList = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/propertyNameService/findList',
    data: data,
    type: 'post'
  })
}
// 商品规格组-添加
export const propertyNameServiceInsert = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/propertyNameService/insert',
    data: data,
    type: 'post'
  })
}
// 商品规格组-保存
export const propertyNameServiceUpdate = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/propertyNameService/update',
    data: data,
    type: 'post'
  })
}
// 商品规格组-删除
export const propertyNameServiceDelete = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/propertyNameService/delete',
    data: data,
    type: 'post'
  })
}

// 商品规格值列表
export const propertyValueServiceList = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/propertyValueService/findList',
    data: data,
    type: 'post'
  })
}
// 商品规格值-添加
export const propertyValueServiceInsert = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/propertyValueService/insert',
    data: data,
    type: 'post'
  })
}
// 商品规格值-保存
export const propertyValueServiceUpdate = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/propertyValueService/update',
    data: data,
    type: 'post'
  })
}
// 商品规格值-删除
export const propertyValueServiceDelete = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/propertyValueService/delete',
    data: data,
    type: 'post'
  })
}
// 优惠券-列表
export const marketingCouponServiceFind = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/marketingCouponService/findList',
    data: data,
    type: 'post'
  })
}
// 优惠券-添加
export const marketingCouponServiceInsert = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/marketingCouponService/insert',
    data: data,
    type: 'post'
  })
}
// 优惠券删除
export const marketingCouponServiceDelete = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/marketingCouponService/delete',
    data: data,
    type: 'post'
  })
}
// 创建商品
export const goodsInfoServiceInsert = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/goodsInfoService/insert',
    data: data,
    type: 'post'
  })
}
// 商品列表
export const goodsInfoServiceFindList = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/goodsInfoService/findList',
    data: data,
    type: 'post'
  })
}
// 商品详情
export const goodsInfoServiceGet = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/goodsInfoService/get',
    data: data,
    type: 'post'
  })
}
// 修改商品详情
export const goodsInfoServiceUpdate = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/goodsInfoService/update',
    data: data,
    type: 'post'
  })
}
// 会员注册列表
export const memberInfoServiceFindList = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/memberInfoService/findList',
    data: data,
    type: 'post'
  })
}
// 添加会员
export const memberInfoServiceInsert = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/memberInfoService/insert',
    data: data,
    type: 'post'
  })
}
// 修改会员
export const memberInfoServiceUpdate = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/memberInfoService/update',
    data: data,
    type: 'post'
  })
}
// 删除会员
export const memberInfoServiceDelete = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/memberInfoService/delete',
    data: data,
    type: 'post'
  })
}
// 商户支付参数
export const insertWxPaySetting = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/wxPaySettingService/insertWxPaySetting',
    data: data,
    type: 'post'
  })
}
// 查询订单列表
export const OrderInfofindList = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/orderBaseInfoService/findList',
    data: data,
    type: 'post'
  })
}
// 领取优惠券列表
export const findRecordList = (data) => {
  return axios.request({
    url: '/api/ac/ctcshop/marketingCouponService/findRecordList',
    data: data,
    type: 'post'
  })
}
